package com.example.springboot10_19.service;

import com.example.springboot10_19.dao.UserDao;
import com.example.springboot10_19.entity.User;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

@Service
public class UserService {
    @Resource
    private UserDao userDao;
    public User findByName(String name){
        return userDao.findByName(name);
    }
}
